package com.gitee.chenyaohua

import com.gitee.chenyaohua.utils.FreemarkerUtil
import org.junit.Test

import java.nio.file.Paths

class FreemarkerUtilTest {

    @Test
    void generateJavaFile(){
        HashMap<String,String> hashMap = new HashMap<>()
        hashMap.put("classPath","com.gitee.chenyaohua")
        hashMap.put("className","Demo")
        hashMap.put("helloWorld","ni hao ")
        Paths.get("F:\\files\\work\\idea\\code-generation-plugin\\src\\test\\resources\\generateJavaFileTmp.ftl")
        FreemarkerUtil.generateJavaFile("F:\\files\\work\\idea\\code-generation-plugin\\src\\test\\resources\\generateJavaFileTmp.ftl","F:\\files\\work\\idea\\code-generation-plugin\\src\\test\\resources\\FavaFileTmp.java",hashMap)
    }
}
